package com.tansun.easycare.rule.common;

/**
 * 常量表
 *
 * @author kuanglishi
 */
public interface Constant {

    String DEFAULT_CHARSET = "utf-8";
    //存放xml的相对地址
    String DMFILE = "/ruleBomMapping.xml";
    String DOMAIN_DMFILE = "/ruleDomain.xml";
    //数据模型的日期格式
    String DATEFORMAT = "yyyy-MM-dd HH:mm:ss";
    //数据模型类型
    String DATAMODEL_PARAMTYPE_IN = "IN";
    String DATAMODEL_PARAMTYPE_OUT = "OUT";
    String DATAMODEL_PARAMTYPE_ALL = "ALL";
    String DATAMODEL_PARAMTYPE_OTH = "OTH";

    //模型属性数据类型
    String DATAMODEL_ATTRIBUTE_TYPE_ENUM = "Enum";
    String DATAMODEL_ATTRIBUTE_TYPE_STRING = "String";
    String DATAMODEL_ATTRIBUTE_TYPE_LONG = "Long";
    String DATAMODEL_ATTRIBUTE_TYPE_INTEGER = "Integer";
    String DATAMODEL_ATTRIBUTE_TYPE_DOUBLE = "Double";
    String DATAMODEL_ATTRIBUTE_TYPE_DATE = "Date";
    String DATAMODEL_ATTRIBUTE_TYPE_BOOLEAN = "Boolean";
    //取值类型
    String DATAMODEL_ATTRIBUTE_DOMAINTYPE_COLLECTION = "collection";
    String DATAMODEL_ATTRIBUTE_DOMAINTYPE_LINE = "line";
    String DATAMODEL_ATTRIBUTE_DOMAINTYPE_SEPARATE = "separate";
    String DATAMODEL_ATTRIBUTE_DOMAINTYPE_DERIVES = "derives";

    //模型属性是否输出
    String DATAMODEL_ATTRIBUTE_N = "N";
    String DATAMODEL_ATTRIBUTE_Y = "Y";

    //模型属性集合类型
    String DATAMODEL_ATTRIBUTE_COLLECTION_LIST = "List";
    String DATAMODEL_ATTRIBUTE_COLLECTION_MAP = "Map";
    String DATAMODEL_ATTRIBUTE_COLLECTION_SET = "Set";

    //规则集初始的优先集
    Integer FIRST_SALIENCE = 999999;

    //规则功能模块
    String MODELTYPE_SEGMENTATION = "segmentation";// ,name:"分段细分",
    String MODELTYPE_CONDITIONALSUB = "conditionalSub";// ",name:"条件细分",
    String MODELTYPE_DECISIONTREE = "decisionTree";// ,name:"决策树",
    String MODELTYPE_DECISIONTABLE = "decisionTable";// ,name:"决策表",
    String MODELTYPE_EVALUATIONINDEX = "evaluationIndex";// ,name:"赋值索引",
    String MODELTYPE_SCOREMODEL = "scoreModel";// ,name:"评分模型",
    String MODELTYPE_GENERALRULE = "generalRule";// ,name:"普通规则",
    String MODELTYPE_RULEGROUP = "ruleGroup";// ,name:"规则集",
    String MODELTYPE_POLICYRULEGROUP = "policyRuleGroup";// ,name:"政策规则集",
    String MODELTYPE_RULEFLOW = "ruleFlow";// ,name:"规则流",

    // 项目状态  0:删除，1：正常 2：发布 3:暂存版本
    String RULE_STATUS_DELETE = "0";
    String RULE_STATUS_NORMAL = "1";
    String RULE_STATUS_DEPLOY = "2";
    String RULE_STATUS_TEMP = "3";
}
